import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
	history: createWebHistory(),
	routes: [
		{
			path: '/home',
			component: () => import('@/views/Home/Home.vue'),
			children: [
				{
					path: 'file',
					component: () => import('@/views/Home/File/File.vue'),
				},
				{
					path: 'upload',
					component: () => import('@/views/Home/UpLoad/UpLoad.vue'),
				},
				{
					path: 'seachfile',
					component: () => import('@/views/Home/SeachFile/SeachFile.vue'),
				},
				
			]
		},
		{
			path: '/user',
			component: () => import('@/views/User/User.vue'),
			children: [
				{
					path: 'login',
					component: () => import('@/views/User/Login/Login.vue'),
				},
				{
					path: 'register',
					component: () => import('@/views/User/Register/Register.vue'),
				},
				{
					path: 'info',
					component: () => import('@/views/User/Info/Info.vue')
				},
				{
					path: 'setpassword',
					component: () => import('@/views/User/SetPassword/SetPassword.vue')
				},
				{
					path: 'setuser',
					component: () => import('@/views/User/SetUser/SetUser.vue')
				},

			]
		},

		{
			path: '/',
			redirect: '/home'
		},

	]
})



export default router